#include <iostream>
using namespace std;

class Test {
  private:
    static int count; // 对象数

  public:
    Test() { count++; }
    static void Show() { cout << "共有" << count << "个对象!" << endl; }
};

int Test::count = 0;

int main() {
    Test obj1, obj2, obj3;
    Test::Show();

    return 0;
}
